<style>
body,.weui_tab_bd {
	background: #f2f2f2;
}
.fff{
	background: #fff;
}
.ccc{
	background: #f2f2f2;
}
</style>
<div class="mobilepage">
<div class="top kf_top bb1">
    <span class="back col-lg-1 col-md-1 col-sm-2 col-xs-2">
        <img src="{{localurl}}images/back.png" class="back_img" alt="返回" ng-click="back()">
    </span>
    <span class="order_top col-lg-10 col-md-10 col-sm-8 col-xs-8">
        <a class="left" ng-class="{on:status==0}" ng-click="go('tutororder1')"><i>进行中</i></a><a  class="right" ng-class="{on:status==1}" ng-click="go('tutororder2')"><i>已结束</i></a>
    </span>
    <span class="menu col-lg-1 col-md-1 col-sm-2 col-xs-2"></span>
</div>
    <div id="viewbd" class="weui_tab_bd" when-scrolled="loadMore()">

<div class="order_main">
	 <div class="order_list_none" ng-show="(order==null||order.length<=0)&&!busy">
        <div class="order_list_none_top">
            <img src="{{localurl}}images/layout/order_none.png" alt="">
            <p>您暂时还没有订单哟</p>
        </div>
    </div>
    <div class="order_none ng-hide" ng-show="(order==null||order.length<=0)&&busy">
           <img src="{{localurl}}images/loading.gif" alt="" width="12px">
           <p>正在努力加载中</p>
       </div>
    <!--order结束-->
    <div class="tutor_order_list" ng-repeat="o in order" id="{{o.consult_tid}}">
        <div class="tutor_order_list_top row mg0">
            <span class="left col-lg-6 col-md-6 col-sm-6 col-xs-6">订单号：{{o.order_sn}}</span>
            <span class="right col-lg-6 col-md-6 col-sm-6 col-xs-6">发出时间：{{o.add_time}}</span>
        </div>
        <div class="tutor_order_list_bot">
            <div class="tutor_order_list_bot_top">
                <p class="tutor_order_list_bot_top_p row mg0">
                    <span class="tutor_order_list_bot_top_span" ng-class="{on:o.status>=10}">
                        <strong></strong><i class="right"></i>
                        <em>确认接单</em>
                    </span>
                    <span class="tutor_order_list_bot_top_span" ng-class="{on:o.status>=20}">
                        <i class="left"></i><strong></strong><i class="right"></i>
                        <em>支付冻结</em>
                    </span>
                    <span class="tutor_order_list_bot_top_span" ng-class="{on:o.status>=30}">
                        <i class="left"></i><strong></strong><i class="right"></i>
                        <em>互动资讯</em>
                    </span>
                    <span class="tutor_order_list_bot_top_span" ng-class="{on:o.status>=40}">
                        <i class="left"></i><strong></strong>
                        <em>评价</em>
                    </span>
                </p>
            </div>
            <div class="tutor_order_list_bot_middle">
                <div class="tutor_order_list_bot_middle_info">
                    <i>{{o.parent_name}}</i><img src="{{localurl}}images/right.png" alt=""><i>{{o.cate_name}}</i>
                    <div class="find_reply_info" ng-show="o.voice_path&&o.voice_size>0">
            			<span ng-click="play(this)"><img src="{{localurl}}images/layout/{{o.playm}}" alt=""><i>{{o.voice_size}}"</i></span>
       				 </div>
                    <h3>{{o.content}}</h3>
                    <span>订单状态:<strong>{{o.state}}</strong></span><span ng-show="o.tutor.start_time!=undefined&&o.tutor.start_time!=''&&o.status<=30">咨询开始时间:<strong>{{o.tutor.start_time}}</strong></span>
                    <span ng-show="o.status>30">时长：<strong>{{o.order_take_time}}分钟</strong></span>
                    <span ng-show="o.status>30">资费：<strong>{{o.order_amount|price}}</strong></span>
                    <b ng-click="resettime(this)" class="tutor_result_on" ng-show="o.tutor.start_time!=''&&o.tutor.start_time!=undefined&&o.status==30">重置</b>
                </div>
            </div>
            <div class="tutor_order_list_bot_bot row mg0" ng-show="o.nshow==false">
                <a  class="tutor_order_list_top_a on col-lg-1 col-md-1 col-sm-3 col-xs-4" ng-click="go('userindex',{'id':o.user_id})">
                    <span><i><img ng-src="{{site}}{{o.headimgurl}}" err-src="{{localurl}}images/my/my_header_user.png" alt=""></i></span>
                    <p>{{o.real_name}}</p>
                </a>
                <span class="tutor_order_list_right col-lg-10 col-md-10 col-sm-9 col-xs-8" ng-show="o.status>=10&&o.status<=20">
                    <div class="tutor_order_right">
                        <div class="tutor_order_right_top">
                            <img src="{{localurl}}images/layout/tutor_order_time.png" alt="">
                            <p>我接受以下时间开始咨询:</p>
                            <span ng-click="upconsulttime(this)">{{o.t}}</span>
                        </div>
                        <div class="tutor_order_right_bot" ng-show="o.tutor.start_time==''">
                            <a  ng-click="accept(this)">通知学员</a>
                        </div>
                        <div class="tutor_order_right_bot" ng-show="o.tutor.start_time!=''&&o.tutor.start_time!=undefined">
                            <a >等待学员确认并支付</a>
                        </div>
                    </div>
                </span>
                <span class="tutor_message col-lg-11 col-md-11 col-sm-9 col-xs-8" ng-show="o.status>=30">
                    <a  class="default" ng-click="go('chatmsg',{'id':o.user_id,'cid':o.consult_tid})">
                        <img src="{{localurl}}images/layout/tutor_message.png" class="tutor_img" alt="">
                        <img src="{{localurl}}images/layout/tutor_message_black.png" class="tutor_black_img" alt="">
                        <img src="{{localurl}}images/layout/tutor_message_on.png" class="tutor_on_img" alt="">
                        <h3 ng-show="o.status>=40||o.status==-1">留言记录</h3>
                        <h3 ng-show="o.status<40&&o.status>10" style="position: relative;">学员留言 <label ng-show="o.msgcount>0" style="background: #FF3030;
    color: #fff;
    padding: 0 6px;
    position: absolute;
    top: 5px;
    right: 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: normal;
    line-height: 18px;">{{o.msgcount}}</label></h3>
                    </a>
                    <a ng-show="o.status!=-1"  class="default" 
                    ng-class="{bg_black:o.status>=40||o.status==-1||o.timeready>0,fff:o.status>=40&&o.video_path!=null&&o.video_path!='',ccc:o.status>=40&&o.video_path==''}" 
                    style="position: relative;">
                    	<img src="{{localurl}}images/layout/tutor_video.png" ng-show="o.status<40&&o.status>10&&o.timeready<=0" class="tutor_img" alt="">
                        <img src="{{localurl}}images/layout/tutor_video.png" ng-show="o.status>=40&&o.video_path!=null&&o.video_path!=''" class="tutor_img" alt="">
                        <img src="{{localurl}}images/layout/tutor_video_black.png" class="tutor_black_img" ng-show="(o.status>=40&&o.video_path=='')||(o.status<40&&o.timeready>0)" alt="">
                        <img src="{{localurl}}images/layout/tutor_video_on.png" class="tutor_on_img" alt="">
                        <h3 ng-show="o.status>=40&&o.video_path==''">咨询录播</h3>
                        <h3 ng-click="playvideo(o.video_path)" ng-show="o.status>=40&&o.video_path!=null&&o.video_path!=''">咨询录播</h3>
                        <h3 ng-click="videostart(this)" ng-show="o.status<40&&o.status>10">开始咨询</h3>
                        <span ng-show="o.status<40&&o.timeready>0" style="position: absolute;top:30px;left: 57px">倒计时：{{o.h}}:{{o.m}}:{{o.s}}</span>
                    </a>
                </span>
            </div>
            <div class="tutor_notice" ng-show="o.nshow==true">
                <div class="tutor_notice_info">
                    <i ng-click="o.nshow=false"><img src="{{localurl}}images/layout/tutor_notice_close.png" alt=""></i>
                    <p>已发送通知</p>
                    <p>请等待学员支付和确认咨询开始时间</p>
                </div>
            </div>
            
            <div style="padding-left: 15px;border-top: 1px solid #ccc;" class="follow_consultant_bot_toggle" ng-show="o.status>=50&&o.evaluation_time!=null&&o.evaluation_time!=0">
                <dl class="follow_consultant_bot_dl">
                    <dt ng-click="zanclick(this)">
                        <span style="color: #336699">评价内容</span>
                        <a  class="s" ng-class="{us:o.hh>0}" >
                        <span  style="padding-left: 15px;"></span>
                        </a>
                    </dt>
                    <dd class="follow_consultant_bot_dd" ng-show="o.hh>0">
			              <div class="find_reply_bot_user" style="height: 80px;background: #f2f2f2;">
			                <span ng-click="go('userindex',{'id':o.user_id})" class="left col-lg-1 col-md-1 col-sm-2 col-xs-2" style="padding-top: 15px;">
			                    <i><img  ng-src="{{site}}{{o.headimgurl}}" err-src="{{localurl}}images/my/my_header_user.png"></i>
			                </span>
			                <span class="right col-lg-11 col-md-11 col-sm-10 col-xs-9">
			                    <h3><span style="font-size: 10px;color: #999;">{{o.evaluation_time}}</span></h3>
			                    <div class="find_reply_info" ng-show="o.evaluation_voice&&o.evaluation_size>0">
            						<span style="width: 30%;padding: 0 10px;line-height: 30px;height: 30px;" ng-click="playeva(this)">
            						<img style="margin-top: 5px;" src="{{localurl}}images/layout/{{o.playeva}}" alt=""><i>{{o.evaluation_size}}"</i>
            						</span>
       				 			</div>
                                <span style="font-size: 10px;color: #666;">{{o.evaluation_content}}</span>
			                </span>
			             </div>
                    </dd>
                </dl>
            </div>
            
        </div>
    </div>
    <div class="question_more">
        <a  ng-click="go('index')"  ng-repeat="alert in alerts " class="question_more_a">没有最后了</a>
    </div>
</div>
    </div>
</div>